class CommentListItemData {
  String avatar;
  String name;
  String time;
  String content;

  CommentListItemData(this.avatar, this.name, this.time, this.content);

  static CommentListItemData fromMap(Map<String, dynamic> map) {
    return CommentListItemData(map['avatar'], map['name'],
        map['time'].toString().substring(0, 10), map['content']);
  }
}
